//
//  QZHomePlayCell.h
//  shortvideoplay
//
//  Created by adam on 2024/6/13.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "QZVideoModel.h"
#import "QzVideoPlayButtonView.h"
#import "YYLabel.h"
#import "HoverTextView.h"
#import "CircleTextView.h"
#import "FocusView.h"
#import "FavoriteView.h"
#import "MusicAlbumView.h"
#import "ZFSliderView.h"

NS_ASSUME_NONNULL_BEGIN
typedef void (^OnPlayerReady)(NSInteger row);
@interface QZHomePlayCell : UICollectionViewCell
@property (nonatomic, copy) void(^myPlayCommentBlock)(NSInteger index);
@property (nonatomic, copy) void(^myPlayPopularBlock)(NSString * popular);
@property (nonatomic, copy) void(^myPlayErrorBlock)(void);//没有地址信息，跳转下一个
@property (nonatomic, strong) HoverTextView    *hoverTextView;
@property (nonatomic, strong) UIButton         *inputView;
//@property (nonatomic, strong) CircleTextView   *musicName;
@property (nonatomic, strong) YYLabel          *desc;
@property (nonatomic, strong) UILabel          *nickName;
@property (nonatomic, strong) ZFSliderView * sliderView;
@property (nonatomic, strong) UIImageView      *avatar;
@property (nonatomic, strong) FocusView        *focus;
//@property (nonatomic, strong) MusicAlbumView   *musicAlum;

@property (nonatomic, strong) UIImageView      *share;
@property (nonatomic, strong) UIImageView      *hua;
@property (nonatomic, strong) UIImageView      *comment;

@property (nonatomic, strong) FavoriteView     *favorite;

@property (nonatomic, strong) UILabel          *shareNum;
@property (nonatomic, strong) UILabel          *huaNum;
@property (nonatomic, strong) UIImageView      *collection;
@property (nonatomic, strong) UILabel          *collectionNum;
@property (nonatomic, strong) UILabel          *commentNum;
@property (nonatomic, strong) UILabel          *favoriteNum;
@property (nonatomic, strong) OnPlayerReady    onPlayerReady;
@property (nonatomic, assign) BOOL             isPlayerReady;
@property (nonatomic, strong) QZVideoModel     *videoModel;
@property (strong, nonatomic)  UIView *ADPlayView;
@property (nonatomic, strong) NSString *urlString;
@property (nonatomic, assign) NSInteger             indexRow;

@property (strong, nonatomic)  UIView *showMoneyView;
@property (strong, nonatomic)  UIImageView *showMoneyBgImge;
@property (strong, nonatomic)  UILabel *showMoneyLabel;
@property (strong, nonatomic)  UIButton *showMoneyButt;
//- (void)initData:(QZVideoModel *)data;
- (void)commentShowView;
- (void)commentMoveStatus:(CGFloat)offset close:(BOOL)close;
- (void)uploadShowPlayModel:(QZVideoModel *)model;

@property (strong, nonatomic)  UIView *hoem_recommend_playview;

@property (strong, nonatomic)  AVPlayer *video_player;
@property (strong, nonatomic)  AVPlayerItem * video_playerItem;
@property (strong, nonatomic)  AVPlayerLayer * video_playerLayer;
//监控进度
@property (nonatomic,strong)NSTimer *avTimer;
@property (strong, nonatomic)  UIImageView *hoem_recommend_imageView;//播放之前图片
- (void)video_playTap;
- (void)video_pauseTap;
- (void)video_stopTap;
- (void)pauseAdShow;


@end

NS_ASSUME_NONNULL_END
